import service from "@/utils/service.js"
// post发送数据
export let postdata=(url,data)=>{
    return new Promise((resolve,reject)=>{
        service.request({
            url,
            method:"post",
            data
        }).then((ok)=>{
            resolve(ok)
        }).catch((err)=>{
            reject(err)
        })
    })
}